package day12.lx;

import java.io.*;

public class Lian11 {
    public static void main(String[] args) throws IOException {
        InputStreamReader isr=new InputStreamReader(new FileInputStream("C:\\Users\\bigto\\Desktop\\tt.txt"),"utf-8");
        int ch;
        while ((ch=isr.read())!=-1){
            System.out.println((char)ch);
        }
        isr.close();
        OutputStreamWriter osw=new OutputStreamWriter(new FileOutputStream("C:\\Users\\bigto\\Desktop\\aa.txt"),"utf-8");
        osw.write("我爱学习,谁也别打扰我");
        osw.close();
    }
}
